Skip to content

vectorstores/bedrockknowledgebases: add safety configuration for llms#1489

Open
lucaronca wants to merge 2 commits into
tmc:mainfrom
lucaronca:introduce-safety-configuration
Open

vectorstores/bedrockknowledgebases: add safety configuration for llms#1489
lucaronca wants to merge 2 commits into
tmc:mainfrom
lucaronca:introduce-safety-configuration

Conversation

@lucaronca
Copy link
Copy Markdown
Contributor

@lucaronca lucaronca commented Apr 2, 2026

PR Checklist

This PR adds safety configuration support to LLM calls.
It introduces an implementation for it in the bedrock llm through aws Bedrock Guardrails. It centralizes Bedrock invocation logic to consistently apply, if requested, guardrail parameters to both standard and streaming requests. When a guardrail intervenes, the response is intercepted and propagated as a content filter error to the chain level.

  • Read the Contributing documentation.
  • Read the Code of conduct documentation.
  • Name your Pull Request title clearly, concisely, and prefixed with the name of the primarily affected package you changed according to Good commit messages (such as memory: add interfaces for X, Y or util: add whizzbang helpers).
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. Fixes #123).
  • Describes the source of new concepts.
  • References existing implementations as appropriate.
  • Contains test coverage for new functions.
  • Passes all golangci-lint checks.

@lucaronca lucaronca changed the title Introduce safety configuration Introduce safety configuration for llms Apr 2, 2026
@lucaronca lucaronca changed the title Introduce safety configuration for llms feat(vectorstores/bedrockknowledgebases): introduce safety configuration for llms Apr 24, 2026
@lucaronca lucaronca changed the title feat(vectorstores/bedrockknowledgebases): introduce safety configuration for llms vectorstores/bedrockknowledgebases: introduce safety configuration for llms May 15, 2026
@lucaronca lucaronca changed the title vectorstores/bedrockknowledgebases: introduce safety configuration for llms vectorstores/bedrockknowledgebases: add safety configuration for llms May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant